3.7.24 \(\int \frac {a+b \log (c (d+e x^m)^n)}{x} \, dx\) [624]

Optimal. Leaf size=49 \[ \frac {\log \left (-\frac {e x^m}{d}\right ) \left (a+b \log \left (c \left (d+e x^m\right )^n\right )\right )}{m}+\frac {b n \text {Li}_2\left (1+\frac {e x^m}{d}\right )}{m} \]

[Out]

ln(-e*x^m/d)*(a+b*ln(c*(d+e*x^m)^n))/m+b*n*polylog(2,1+e*x^m/d)/m

________________________________________________________________________________________

Rubi [A]
time = 0.03, antiderivative size = 49, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.150, Rules used = {2504, 2441, 2352} \begin {gather*} \frac {b n \text {PolyLog}\left (2,\frac {e x^m}{d}+1\right )}{m}+\frac {\log \left (-\frac {e x^m}{d}\right ) \left (a+b \log \left (c \left (d+e x^m\right )^n\right )\right )}{m} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(a + b*Log[c*(d + e*x^m)^n])/x,x]

[Out]

(Log[-((e*x^m)/d)]*(a + b*Log[c*(d + e*x^m)^n]))/m + (b*n*PolyLog[2, 1 + (e*x^m)/d])/m

Rule 2352

Int[Log[(c_.)*(x_)]/((d_) + (e_.)*(x_)), x_Symbol] :> Simp[(-e^(-1))*PolyLog[2, 1 - c*x], x] /; FreeQ[{c, d, e
}, x] && EqQ[e + c*d, 0]

Rule 2441

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))/((f_.) + (g_.)*(x_)), x_Symbol] :> Simp[Log[e*((f + g
*x)/(e*f - d*g))]*((a + b*Log[c*(d + e*x)^n])/g), x] - Dist[b*e*(n/g), Int[Log[(e*(f + g*x))/(e*f - d*g)]/(d +
 e*x), x], x] /; FreeQ[{a, b, c, d, e, f, g, n}, x] && NeQ[e*f - d*g, 0]

Rule 2504

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_)^(n_))^(p_.)]*(b_.))^(q_.)*(x_)^(m_.), x_Symbol] :> Dist[1/n, Subst[I
nt[x^(Simplify[(m + 1)/n] - 1)*(a + b*Log[c*(d + e*x)^p])^q, x], x, x^n], x] /; FreeQ[{a, b, c, d, e, m, n, p,
 q}, x] && IntegerQ[Simplify[(m + 1)/n]] && (GtQ[(m + 1)/n, 0] || IGtQ[q, 0]) &&  !(EqQ[q, 1] && ILtQ[n, 0] &&
 IGtQ[m, 0])

Rubi steps

\begin {align*} \int \frac {a+b \log \left (c \left (d+e x^m\right )^n\right )}{x} \, dx &=\frac {\text {Subst}\left (\int \frac {a+b \log \left (c (d+e x)^n\right )}{x} \, dx,x,x^m\right )}{m}\\ &=\frac {\log \left (-\frac {e x^m}{d}\right ) \left (a+b \log \left (c \left (d+e x^m\right )^n\right )\right )}{m}-\frac {(b e n) \text {Subst}\left (\int \frac {\log \left (-\frac {e x}{d}\right )}{d+e x} \, dx,x,x^m\right )}{m}\\ &=\frac {\log \left (-\frac {e x^m}{d}\right ) \left (a+b \log \left (c \left (d+e x^m\right )^n\right )\right )}{m}+\frac {b n \text {Li}_2\left (1+\frac {e x^m}{d}\right )}{m}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.01, size = 49, normalized size = 1.00 \begin {gather*} a \log (x)+\frac {b \left (\log \left (-\frac {e x^m}{d}\right ) \log \left (c \left (d+e x^m\right )^n\right )+n \text {Li}_2\left (\frac {d+e x^m}{d}\right )\right )}{m} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(a + b*Log[c*(d + e*x^m)^n])/x,x]

[Out]

a*Log[x] + (b*(Log[-((e*x^m)/d)]*Log[c*(d + e*x^m)^n] + n*PolyLog[2, (d + e*x^m)/d]))/m

________________________________________________________________________________________

Maple [C] Result contains higher order function than in optimal. Order 9 vs. order 4.
time = 1.46, size = 189, normalized size = 3.86

method result size
risch \(b \ln \left (x \right ) \ln \left (\left (d +e \,x^{m}\right )^{n}\right )+\frac {i \ln \left (x \right ) b \pi \,\mathrm {csgn}\left (i \left (d +e \,x^{m}\right )^{n}\right ) \mathrm {csgn}\left (i c \left (d +e \,x^{m}\right )^{n}\right )^{2}}{2}-\frac {i \ln \left (x \right ) b \pi \,\mathrm {csgn}\left (i \left (d +e \,x^{m}\right )^{n}\right ) \mathrm {csgn}\left (i c \left (d +e \,x^{m}\right )^{n}\right ) \mathrm {csgn}\left (i c \right )}{2}-\frac {i \ln \left (x \right ) b \pi \mathrm {csgn}\left (i c \left (d +e \,x^{m}\right )^{n}\right )^{3}}{2}+\frac {i \ln \left (x \right ) b \pi \mathrm {csgn}\left (i c \left (d +e \,x^{m}\right )^{n}\right )^{2} \mathrm {csgn}\left (i c \right )}{2}+\ln \left (c \right ) \ln \left (x \right ) b +\ln \left (x \right ) a -\frac {b n \dilog \left (\frac {d +e \,x^{m}}{d}\right )}{m}-b n \ln \left (x \right ) \ln \left (\frac {d +e \,x^{m}}{d}\right )\) \(189\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a+b*ln(c*(d+e*x^m)^n))/x,x,method=_RETURNVERBOSE)

[Out]

b*ln(x)*ln((d+e*x^m)^n)+1/2*I*ln(x)*b*Pi*csgn(I*(d+e*x^m)^n)*csgn(I*c*(d+e*x^m)^n)^2-1/2*I*ln(x)*b*Pi*csgn(I*(
d+e*x^m)^n)*csgn(I*c*(d+e*x^m)^n)*csgn(I*c)-1/2*I*ln(x)*b*Pi*csgn(I*c*(d+e*x^m)^n)^3+1/2*I*ln(x)*b*Pi*csgn(I*c
*(d+e*x^m)^n)^2*csgn(I*c)+ln(c)*ln(x)*b+ln(x)*a-b*n/m*dilog((d+e*x^m)/d)-b*n*ln(x)*ln((d+e*x^m)/d)

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*log(c*(d+e*x^m)^n))/x,x, algorithm="maxima")

[Out]

1/2*(2*d*m*n*integrate(log(x)/(d*x + x*e^(m*log(x) + 1)), x) - m*n*log(x)^2 + 2*log(c)*log(x) + 2*log((d + e^(
m*log(x) + 1))^n)*log(x))*b + a*log(x)

________________________________________________________________________________________

Fricas [A]
time = 0.35, size = 72, normalized size = 1.47 \begin {gather*} \frac {b m n \log \left (x^{m} e + d\right ) \log \left (x\right ) - b m n \log \left (x\right ) \log \left (\frac {x^{m} e + d}{d}\right ) - b n {\rm Li}_2\left (-\frac {x^{m} e + d}{d} + 1\right ) + {\left (b m \log \left (c\right ) + a m\right )} \log \left (x\right )}{m} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*log(c*(d+e*x^m)^n))/x,x, algorithm="fricas")

[Out]

(b*m*n*log(x^m*e + d)*log(x) - b*m*n*log(x)*log((x^m*e + d)/d) - b*n*dilog(-(x^m*e + d)/d + 1) + (b*m*log(c) +
 a*m)*log(x))/m

________________________________________________________________________________________

Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {a + b \log {\left (c \left (d + e x^{m}\right )^{n} \right )}}{x}\, dx \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*ln(c*(d+e*x**m)**n))/x,x)

[Out]

Integral((a + b*log(c*(d + e*x**m)**n))/x, x)

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*log(c*(d+e*x^m)^n))/x,x, algorithm="giac")

[Out]

integrate((b*log((x^m*e + d)^n*c) + a)/x, x)

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.02 \begin {gather*} \int \frac {a+b\,\ln \left (c\,{\left (d+e\,x^m\right )}^n\right )}{x} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a + b*log(c*(d + e*x^m)^n))/x,x)

[Out]

int((a + b*log(c*(d + e*x^m)^n))/x, x)

________________________________________________________________________________________